package StudyCode.summary.mycollection;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class ConvertObjectArrayToSet {
	public static void main(String[] argv) {
		Object[] tArray = new String[]{"1", "abc", "level",
				"www.tah1986.com", "asdf 123"};
		System.out.println(setArray2Set(tArray));
	}

	public static Set<?> setArray2Set(Object[] tArray) {
		Set<?> tSet = new HashSet(Arrays.asList(tArray));
		return tSet;
	}
}
